import request from '@/utils/request'
import { baseUrl } from './baseUrl'

//判断用户是否存在 
export function judgeHasUser() {
         const userInfo = localStorage.getItem('userInfo');
         const role = JSON.parse(userInfo).role
         if(userInfo==""){
            this.$router.push({ path:  '/' })     
         }
        }